PangoAttrList *attribs = NULL;
const PangoFontDescription *font;
StTextAlign align;
+ gdouble spacing;
st_theme_node_get_foreground_color (theme_node, &color);
clutter_text_set_color (text, &color);
font = st_theme_node_get_font (theme_node);
clutter_text_set_font_description (text, (PangoFontDescription *) font);
+ attribs = pango_attr_list_new ();
+
decoration = st_theme_node_get_text_decoration (theme_node);
if (decoration)
{
- attribs = pango_attr_list_new ();
-
if (decoration & ST_TEXT_DECORATION_UNDERLINE)
{
PangoAttribute *underline = pango_attr_underline_new (PANGO_UNDERLINE_SINGLE);
*/
}
+ spacing = st_theme_node_get_letter_spacing (theme_node);
+ if (spacing)
+ {
+ PangoAttribute *letter_spacing = pango_attr_letter_spacing_new ((int)(.5 + spacing) * PANGO_SCALE);
+ pango_attr_list_insert (attribs, letter_spacing);
+ }
+
clutter_text_set_attributes (text, attribs);
if (attribs)